let num = 2.455454
//Math.floor()---向下取整
console.log(Math.floor(num))  //2

//Math.ceil() ----向上取整
console.log(Math.ceil(num))   //3


//Math.round()  ----四舍五入
console.log(Math.round(num)) //2